package com.restaurant.springboot.service;

import com.restaurant.springboot.entity.DishesEntity;
import com.restaurant.springboot.entity.vo.OrderItemVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.beans.Transient;
import java.util.List;

public interface DishesService {

    Page<DishesEntity> getDishesOfPage(Pageable pageable);

    List<DishesEntity> getAllDishes();

    @Transient
    boolean saveDishes(DishesEntity dishes);

    List<DishesEntity> getDishesBySeriesId(int dishesSeriesId);

    DishesEntity getDishesById(int dishesId);

    @Transient
    void deleteDishesByDishesId(int dishesId);

    List<DishesEntity> getAllDishesByOrderId(int orderId);

     List<OrderItemVO> getAllOrderItemByOrderId(int orderId);

     List<DishesEntity> getRecommendDishes();

}
